package com.leyou.user.api;

import com.leyou.user.pojo.User;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

public interface UserApi {

    /**
     * 根据用户名和密码查询用户信息
     * @param username  用户名
     * @param password  密码
     * @return          User 对象
     */
    @GetMapping("query")
    public User queryUserBy(
            @RequestParam("username") String username,
            @RequestParam("password") String password
    );
}
